package thesis.database;

import java.io.Serializable;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Date;




/**
 * This class use for customer object.
 * 
 * @author La Duy Khang - Dinh Tran Ly Hung -Tang Thi Phuong Linh
 * @version 1.0
 */
public class Customer implements Serializable{
	private int customerId;
	private String customerName;
	private String homeAddress;
	private String officeAddress;
	private String newestAddress;
	private Timestamp creationTime;
	private Timestamp lastUpdate;
	private String homePhone;
	private String officePhone;
	private String newestPhone;

	public Customer(int customerId, String customerName, String homeAddress,
			String officeAddress, String newestAddress, Timestamp creationTime,
			Timestamp lastUpdate, String homePhone, String officePhone,
			String newestPhone) {
		this.customerId = customerId;
		this.customerName = customerName;
		this.homeAddress = homeAddress;
		this.officeAddress = officeAddress;
		this.newestAddress = newestAddress;
		this.creationTime = creationTime;
		this.lastUpdate = lastUpdate;
		this.homePhone = homePhone;
		this.officePhone = officePhone;
		this.newestPhone = newestPhone;

	}

	public Customer() {
		this.customerId = -1;
		this.customerName = "";
		this.homeAddress = "";
		this.officeAddress = "";
		this.newestAddress = "";
		this.creationTime = new Timestamp((new Date()).getTime());
		this.lastUpdate = new Timestamp((new Date()).getTime());
		this.homePhone = "";
		this.officePhone = "";
		this.newestPhone = "";
	}

	public int getCustomerId() {
		return customerId;
	}

	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	public String getOfficeAddress() {
		return officeAddress;
	}

	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}

	public String getNewestAddress() {
		return newestAddress;
	}

	public void setNewestAddress(String newestAddress) {
		this.newestAddress = newestAddress;
	}

	public Date getCreationTime() {
		return creationTime;
	}

	public void setCreationTime(Timestamp creationTime) {
		this.creationTime = creationTime;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Timestamp lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	public String getOfficePhone() {
		return officePhone;
	}

	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}

	public String getNewestPhone() {
		return newestPhone;
	}

	public void setNewestPhone(String newestPhone) {
		this.newestPhone = newestPhone;
	}

}
